//
//  HApp.m
//  OCBase
//
//  Created by 侯伟 on 2019/4/16.
//  Copyright © 2019年 侯伟. All rights reserved.
//

#import "HApp.h"

@implementation HApp


/**
 名称
 
 @return app名称
 */
+(NSString*)name{
    NSDictionary* info = [NSBundle mainBundle].infoDictionary;
    return [info valueForKey:@"CFBundleDisplayName"];
}

/**
 版本
 
 @return app当前版本
 */
+(NSString*)version{
    NSDictionary* info = [NSBundle mainBundle].infoDictionary;
    return [info valueForKey:@"CFBundleShortVersionString"];
}

/**
 内部版本
 
 @return app当前内部版本
 */
+(NSString*)buildNub{
    NSDictionary* info = [NSBundle mainBundle].infoDictionary;
    return [info valueForKey:@"CFBundleVersion"];
}

/**
 appID
 
 @return app唯一标识
 */
+(NSString*)identifier{
    NSDictionary* info = [NSBundle mainBundle].infoDictionary;
    return [info valueForKey:@"CFBundleIdentifier"];
}

@end
